package xzs.shirospringboot.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xzs.shirospringboot.mapper.UserMapper;
import xzs.shirospringboot.pojo.User;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    UserMapper mapper;

    @Override
    public User queryUserByName(String name) {
        User user = mapper.queryUserByName(name);
        return user;
    }
}
